﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using University.Workshop.Presenters.Kardex.Show;
namespace University.Workshop.Presentation.Kardex.Show
{
    /// <summary>
    /// Interaction logic for PageFirstStepShowKardex.xaml
    /// </summary>
    public partial class PageFirstStepShowKardex : Page, IFirstStepForShowKardex
    {
        private PresenterShowKardex pInternal;
        private PresenterFirstStepForShowKardex pFirstStepForShowKardex;

        public PageFirstStepShowKardex(PresenterShowKardex pExternal)
        {
            InitializeComponent();
            pInternal = pExternal;
            pFirstStepForShowKardex =new PresenterFirstStepForShowKardex(this);
        }

        public string PersonId
        {
            set { PersonCiTxt.Content = value; }
        }

        public string PersonNames
        {
            set { PersonNamesTxt.Content = value; }
        }

        public string PersonLastNames
        {
            set { PersonLastNamesTxt.Content = value; }
        }

        public List<string> PersonPhones
        {
            set { PersonPhonesList.ItemsSource = value; }
        }

        public Model.Kardex KardexToShow { get; set; }

        public void Update()
        {
            pFirstStepForShowKardex.UpdatePersonData();
        }
        
        public void GoBackPage()
        {
            pInternal.GoStepTwo();
        }

        public void GoNextPage()
        {

        }

        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            App.Current.MainWindow.Title = "UIMostrarPersona";
        }
    }
}
